<?php global $options; foreach ($options as $value) {if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }}?>



		
		<div class="vid_container">

			<?php $temp_query = clone $wp_query; ?> 
			 <?php query_posts('category_name=' . $pl_category . '&showposts=' . $pl_count . '');  ?>
			
			 <?php while (have_posts()) : the_post(); if (current_user_can('level_2')) {} else {if (in_category('private')) continue;}
			if ($images = get_children(array(
				'post_parent' => $post->ID,
				'numberposts' => '1',
				'post_type' => 'attachment',
				'post_mime_type' => 'image',
				'order' => 'ASC',
				'orderby' => 'menu_order')))  
			 foreach($images as $image) {  
				$exehill_image = $image->guid; 
				$exehill_thumb = wp_get_attachment_thumb_url( $image->ID);			
				} else {
				$exehill_image = site_url('/wp-content/themes/exehill2/images/noimage.png');
				$exehill_thumb = site_url('/wp-content/themes/exehill2/images/noimage.png');
				}				
			    ?>


			<div class="vid_frame" >
		

				
				<div class="vid_thumb">
				
					<div class="vid_inner_thumb" style="background: url(<?php echo $exehill_thumb; ?>) no-repeat center center; ">
					
						<div id="vid_post" class="MooTrans">
					
							<div class="vid_permalink"><a onmouseover="Tip('<strong><?php the_title(); ?></strong></br>Posted by <?php the_author(); ?> on <?php the_time('M j, Y') ?> with <?php comments_number('0 responses', '1 response', '% responses' );?>')" onmouseout="UnTip()"   href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"></a>
							</div>	
						
							<div class="vid_gallery"> <a onmouseover="Tip('Open Image')" onmouseout="UnTip()" rel="lightbox[boxset]"  href="<?php echo $exehill_image; ?>" ></a>
							</div>
						
						</div>
						
					</div>
					
				</div>
				
			</div>
				<?php endwhile; ?>
				 <?php $wp_query = clone $temp_query; ?>
			

	   		<div class="clear">
			</div>
			
		</div>
		
<div class="vid_bottominfo"><a href="<?php bloginfo('home'); ?>/category/<?php echo $pl_category; ?>/"><?php if ($exehill_cat_link) { echo $exehill_cat_link; } else { ?>View all posts in <?php echo $pl_category; ?><?php } ?></a></div>	
	



